{% extends "../templates/ajax/main_content_base.html" %}
{% block intro %}{% endblock %}
{% block page_name %}group_list{% endblock %}
{% block content %}


<div id='group_list_content'>
	
</div>
<div class="clear"></div>

<div class="pagination">
        <a href="#" class="page" title="1">&laquo; 首页</a>
        <!--Ajax生成页码部分-->
        <span class="pageList"></span>
        <a href="#" class="page lastPage" title="">末页 &raquo;</a>
    </div> <!-- End .pagination -->
<!-- End .pagination -->

<script type="text/javascript" src="/resources/scripts/paging.js"></script>
<script type="text/javascript">
	limit = {{request.settings.group_number_per_page}}
    function getGroupList(){
        $.get("group_list_content", {
            start: start,
            limit: limit
        }, function(html){
            $("#group_list_content").hide().html(html);
            $("#group_list_content").show("fast");
        }, "html");
    }
	
    function getGroupCount(){
        $.getJSON("group_count", {
        }, function(json){
            setCount(json['count']);
        });
    }
 
    getListFun = getGroupList
    getCountFun = getGroupCount
    pageInit()
</script>
{% endblock %}